package com.xyht.medicine_management_system.modules.user.entity.req;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author XYHT
 * @since 2023-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mms_user")
@ApiModel(value="MmsUser对象", description="用户表")
public class MmsUserReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "电话号码")
    private String tel;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "1：管理员  2：企业用户  3：个人用户  4：普通用户")
    private Integer userType;

//    @ApiModelProperty(value = "认证类型  0：未认证  1：企业认证  2：个人认证")
//    private Integer authType;

    @ApiModelProperty(value = "认证状态  0：未认证  1：认证中  2：已认证")
    private Integer authStatus;

    @ApiModelProperty(value = "是否认证 0：不认证  1：认证")
    private Integer isAuth;

    @ApiModelProperty(value = "资质类型  0：无   1：药品经营资质")
    private Integer qualificationType;

    @ApiModelProperty(value = "用户头像")
    private String userProfile;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除：0：未删除 1：已删除")
    @TableLogic
    private Integer isDeleted;


}
